//
//  TRImageView.m
//  BaseProject
//
//  Created by yang_0921 on 15/11/10.
//  Copyright © 2015年 Tarena. All rights reserved.
//

#import "TRImageView.h"

@implementation TRImageView

- (instancetype)init
{
    self = [super init];
    if (self) {
        _imageView = [UIImageView new];
        [self addSubview:_imageView];
// 按比例放大
        _imageView.contentMode = 2;
        [_imageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(0);
        }];
// 当前视图容易减掉超出来自身区域的视图
        self.clipsToBounds = YES;
    }
    return self;
}

@end
